package com.kaikeba.t31.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kaikeba.t31.core.po.BaseEntity;

import java.util.List;

/**
 * Dao基类，实现标准CRUD的dao层操作
 *
 * @author Cui Yicheng
 * @since 2021/11/06
 */
public interface ICrudDao<T extends BaseEntity> extends BaseMapper<T> {

    /**
     * 一般要是用动态sql语句查询
     *
     * @param entity
     * @return
     */
    List<T> selectByQuery(T entity);

}
